package com.pro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Objects;

/**
 * ClassName:JsActicleCategroy
 * Package:com.pro.pojo
 * Description:
 *
 * @Date:2021/11/28 下午 6:19
 * @Author: WYH
 */
public class JsActicleCategroy {
    private Integer acticleCategroyId;//文章分类主键id
    private String artcleCategroyName;//文章分类名称
    private String artcleCategroyCode;//文章分类序号
    private Integer artcleCatefroyParentId;//文章父级id
    private String describe;//文章分类描述
    private String createId;//创建人

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;//创建时间

    private String updateId;//更新人

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;//更新时间

    public JsActicleCategroy() {

    }

    public void setActicleCategroyId(Integer acticleCategroyId) {
        this.acticleCategroyId = acticleCategroyId;
    }

    public void setArtcleCategroyName(String artcleCategroyName) {
        this.artcleCategroyName = artcleCategroyName;
    }

    public void setArtcleCategroyCode(String artcleCategroyCode) {
        this.artcleCategroyCode = artcleCategroyCode;
    }

    public void setArtcleCatefroyParentId(Integer artcleCatefroyParentId) {
        this.artcleCatefroyParentId = artcleCatefroyParentId;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getActicleCategroyId() {
        return acticleCategroyId;
    }

    public String getArtcleCategroyName() {
        return artcleCategroyName;
    }

    public String getArtcleCategroyCode() {
        return artcleCategroyCode;
    }

    public Integer getArtcleCatefroyParentId() {
        return artcleCatefroyParentId;
    }

    public String getDescribe() {
        return describe;
    }

    public String getCreateId() {
        return createId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JsActicleCategroy that = (JsActicleCategroy) o;
        return Objects.equals(acticleCategroyId, that.acticleCategroyId) &&
                Objects.equals(artcleCategroyName, that.artcleCategroyName) &&
                Objects.equals(artcleCategroyCode, that.artcleCategroyCode) &&
                Objects.equals(artcleCatefroyParentId, that.artcleCatefroyParentId) &&
                Objects.equals(describe, that.describe) &&
                Objects.equals(createId, that.createId) &&
                Objects.equals(createDate, that.createDate) &&
                Objects.equals(updateId, that.updateId) &&
                Objects.equals(updateDate, that.updateDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(acticleCategroyId, artcleCategroyName, artcleCategroyCode, artcleCatefroyParentId, describe, createId, createDate, updateId, updateDate);
    }

    @Override
    public String toString() {
        return "JsActicleCategroy{" +
                "acticleCategroyId=" + acticleCategroyId +
                ", artcleCategroyName='" + artcleCategroyName + '\'' +
                ", artcleCategroyCode='" + artcleCategroyCode + '\'' +
                ", artcleCatefroyParentId=" + artcleCatefroyParentId +
                ", describe='" + describe + '\'' +
                ", createId='" + createId + '\'' +
                ", createDate=" + createDate +
                ", updateId='" + updateId + '\'' +
                ", updateDate=" + updateDate +
                '}';
    }
}
